﻿using S2.Ui.ViewModels;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;

namespace S2.Ui
{
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
        }

        private void ContentPage_Appearing(object sender, EventArgs e)
        {
            base.OnAppearing();
            if (BindingContext is MainPageViewModel viewModel)
            {
                viewModel.LoadCommand.Execute(null);
            }
        }
    }
}
